<?php
$task_Id = $_GET['task_id'];
$dsn = "sqlsrv:Server=localhost;Database=Task";
$db = new PDO($dsn, "sa", "123456");
$sql = "update Task set TaskStatus=3 where TaskId ='{$task_Id}'";
$result = $db->query($sql);
if ($result){
    echo "标记完成，请前往<a href='list.php'>查看</a>";
}else{
    echo "标记失败";
}